package com.qidian.hw.dao;

import com.qidian.hw.pojo.Solution;

import java.util.ArrayList;

/**
 * @Author ꒰ঌ(李ᆺ琛)໒꒱
 * @Date 2022/8/19 18:05
 * @Version 1.8
 */
public interface SolutionDAO {
    //添加解决方案
    int saveSolution(Solution solution);

    //删除解决方案
    int deleteSolution(long solutionId);

    //批量删除
    int deleteBatch(String ids[]);

    //修改解决方案
    int updateSolution(Solution solution);

    //查询全部修改方案
    ArrayList<Solution> listSolution();

    //根据编号查询解决方案
    Solution querySolutionById(long solutionId);

    //根据条件查询总数量
    int count(String title, long solutionTypeId);

    //分页模糊查询
    ArrayList<Solution> queryByPage(int page, int size, String title, long solutionTypeId);
}
